﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.Blog.DTO.BlogText;

/// <summary>
///     博客文章新增模型
/// </summary>
public class BlogTextAddDTO
{
    /// <summary>
    ///     博客用户id
    /// </summary>
    [Required(ErrorMessage = "博客用户id不可为空")]
    public string UserId { get; set; }

    /// <summary>
    ///     博客文章编码
    /// </summary>
    [Required(ErrorMessage = "博客文章编码不可为空")]
    public string Code { get; set; }

    /// <summary>
    ///     博客文章标题
    /// </summary>
    [Required(ErrorMessage = "博客文章标题不可为空")]
    public string Name { get; set; }

    /// <summary>
    ///     博客文章内容
    /// </summary>
    [Required(ErrorMessage = "博客文章内容不可为空")]
    public string Content { get; set; }
}